package com.teziyou.commodity.core.thrift;

import javax.annotation.Resource;

import org.apache.thrift.transport.TTransport;
import org.springframework.stereotype.Component;

@Component("areaConnectionManager")
public class AreaConnectionManagerImpl extends BaseConnectionManagerImpl implements ConnectionManager{
	
	/** 保存local对象 */
	//ThreadLocal<TTransport> socketThreadSafe = new ThreadLocal<TTransport>();
	
	/** 连接提供池 */
	@Resource(name="areaConnectionProvider")
	public ConnectionProvider connectionProvider;

	@Override
	public TTransport getTransport() {
		return getTransport(connectionProvider);
	}

}
